﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Computer:Father
    {
        Random random = new Random();
        private int ran;
        public int Ran { get => ran; set => ran = value; }
        public void CompetreHand(int num)
        {
            Ran = random.Next(1, 4);
            switch (Ran)
            {
                case 1: 
                    Console.WriteLine((Hero)num + " :出拳： "+ (Rule)Ran);
                    break;
                case 2:
                    Console.WriteLine((Hero)num + " :出拳： " + (Rule)Ran);
                    break;
                case 3:
                    Console.WriteLine((Hero)num + " :出拳： " + (Rule)Ran);
                    break;
                default:
                    break;
            }
        }
    }
}
